package com.zkyc.framework.common.mapper;

import com.zkyc.framework.common.pojo.PublicityRefTag;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (PublicityRefTag)表数据库访问层
 *
 * @author libingchuan
 * @since 2022-10-10 15:34:38
 */
@Mapper
public interface PublicityRefTagMapper extends BaseMapper<PublicityRefTag>{

    @Delete("delete from web_publicity_ref_tag where publicity_id = #{id}")
    void deleteByPublicityId(Integer id);

    @Select("select media_tag_id from web_publicity_ref_tag where publicity_id = #{id}")
    List<Integer> queryTagIdList(Integer id);

}

